# -*- coding:utf-8 -*-
from Apps.DataGeneration.DataGenerationClass.baseDataGeneration import BaseDataGeneration

"""
地址相关
"""


class AddressDataGeneration(BaseDataGeneration):
    def __init__(self, *args, **kwargs):
        super(AddressDataGeneration, self).__init__(*args, **kwargs)

    def address(self, args):
        """
        地址
        :return:上海市西安县和平李路M座 129895
        """
        return self.generation.address()

    def building_number(self, args):
        """
        楼名
        :return: L座
        """
        return self.generation.building_number()

    def city(self, args):
        """
        城市名
        :return: 玉兰市
        """
        return self.generation.city()

    def city_name(self, args):
        """
        城市名字(不带市县)
        :return: 南京
        """
        return self.generation.city_name()

    def city_suffix(self, args):
        """

        :return: 市
        """
        return self.generation.city_suffix()

    def country(self, args):
        """
        国家
        :return: 尼泊尔
        """
        return self.generation.country()

    def country_code(self, args):
        """
        国家编号
        :param representation:
        :return: DK
        """
        representation = "alpha-2"
        return self.generation.country_code(representation=representation)

    def district(self, args):
        """
        地区
        :return:山亭
        """
        return self.generation.district()

    def postcode(self, args):
        """
        邮编
        :return: 434226
        """
        return self.generation.postcode()

    def province(self, args):
        """
        省
        :return:海南省
        """
        return self.generation.province()

    def street_address(self, args):
        """
        街道地址
        :return:宜都路Y座
        """
        return self.generation.street_address()

    def street_name(self, args):
        """
        街道名称
        :return:秦街
        """
        return self.generation.street_name()

    def street_suffix(self, args):
        """
        街道后缀名
        :return:路，街
        """
        return self.generation.street_suffix()
